﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Class_DAO;
using Class_DTO;
using System.Data;

namespace Class_BUS
{
    public  class HopDongBUS
    {
        public static DataTable LoadDS_HopDong()
        {
            HopDongDAO hdDAO = new HopDongDAO();
            DataTable dt = new DataTable();
            dt = hdDAO.getHopDongQC();
            return dt;
        }
        public static DataTable getHopDong_theoten(string pten)
        {
            HopDongDAO HDdao = new HopDongDAO();
            DataTable dt = new DataTable();
            dt = HDdao.getHopDong_theoten(pten);
            return dt;
        }

        public static bool ThemHopDong_BUS(HopDongDTO dto)
        {
            HopDongDAO HDdao = new HopDongDAO();

            HDdao.ThemHopDong_DAO(dto);
            return true;

        }
    }
}
